package com.example.poverty.dao;

import com.example.poverty.entity.Towns;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 村镇 dao层
 */
@Repository
public interface TownsMapper {
    //增加
    public int insert(Towns towns);

    //更新
    public int update(Towns towns);

    //    删除
    public int delete(Integer id);

    //    根据主键查询村镇
    public Towns selectByPrimaryKey(Integer id);

    //    查询所有村镇
    public List<Towns> allTowns();

    //    根据多少户查询村镇
    public Towns getByTotalHouse(Integer totalHouse);

}
